package com.zcoj.mail.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author chenbin
 * @version 1.0
 * @description: TODO
 * @date 2023/3/4 23:17
 */

@Data
public class Mail implements Serializable {

    private static final long serialVersionUID = 2892248514883451461L;
    private Integer id;
    private String mailName;
    private String mailPwd;
    private String mailType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
//    String type;
//    String date;
//    String from;
//    String to;
//    String username;
//    String code;
}
